#pragma once

#include "Table.h"
//#include "Club.h"

//static const irr::f32 PUCK_RADIUS = 4.5505f;

class Puck
{
public:
	Puck(irr::IrrlichtDevice* device, irr::scene::ISceneNode* table);
	~Puck(void);

	irr::scene::ISceneNode* getNode(void) 
	{
		return node;
	}

	irr::core::vector3df getPosition(void)
	{
		return node->getPosition();
	}

	void setCollisionResult(irr::core::vector3df& result, irr::f32 clubSpeed);

	void update();
	
	static const irr::f32 RADIUS;

private:
	irr::video::IVideoDriver* driver;
	
	irr::scene::ISceneManager* smgr;
	irr::scene::ISceneNode*	node;

	irr::f32 speed;
	irr::f32 accel;

	const irr::f32 maxSpeed;

	irr::core::vector3df direction;
	irr::core::vector3df prevCor;
	irr::core::vector3df cor;
};

